% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot_demogshare_by_distance.R
\name{plot_demogshare_by_distance}
\alias{plot_demogshare_by_distance}
\title{plot_demogshare_by_distance - work in progress}
\usage{
plot_demogshare_by_distance(
  results_bybg_people,
  demogvarname = names_d[1],
  myids = unique(results_bybg_people$ejam_uniq_id),
  show.lowess = F,
  show.lm = TRUE,
  show.line = TRUE,
  ...
)
}
\arguments{
\item{results_bybg_people}{table as from ejamit()$results_results_bybg_people,
like testoutput_ejamit_10pts_1miles$results_bybg_people}

\item{demogvarname}{one of the column names of results_bybg_people, such as
one of names_d like "Demog.Index.Supp"}

\item{myids}{optional vector of ejam_uniq_id values}

\item{show.lowess}{whether to show curve fitted via lines(lowess(x,y))
using \code{\link[stats:lowess]{stats::lowess()}}}

\item{show.lm}{whether to show straight line fitted via \code{\link[=lm]{lm()}}}

\item{show.line}{whether to show straight line fitted via coef(line(x,y))
using \code{\link[stats:coef]{stats::coef()}} and \code{\link[stats:line]{stats::line()}}}

\item{...}{passed to \code{\link[=plot]{plot()}}}
}
\value{
just used to create plot as side effect
}
\description{
plot_demogshare_by_distance - work in progress
}
\details{
Could also consider plotting something like boxplot(demogvar ~ round(distance, 1))

See notes on plots at \code{\link[=plot_barplot_ratios]{plot_barplot_ratios()}}
}
